const Api =[
    {
        path: '/Api/20191181402',
        name: '事件列表',
        part:'Api',
        text:"事件列表",
        keywords:['事件','api','events','event'],
        component: (resolve) => require(['./views/Api/events.vue'], resolve),
    },
]
const Demos =[
    {
        path: '/Demos/2019116',
        name: '移动和缩放',
        text:"移动和缩放",
        part:'Demos',
        keywords:['move','缩放','center','移动'],
        component: (resolve) => require(['./views/Demos/scaling.vue'], resolve),
    },
    {
        path: '/Demos/201911811150',
        name: '绑定和解绑',
        part:'Demos',
        text:"绑定和解绑",
        keywords:['事件','绑定','解绑','on','off'],
        component: (resolve) => require(['./views/Demos/on&off.vue'], resolve),
    },
    {
        path: '/Demos/20191181638',
        name: '组合图元',
        part:'Demos',
        text:"组合图元",
        keywords:['组合','组图元','group'],
        component: (resolve) => require(['./views/Demos/group.vue'], resolve),
    },
    {
        path: '/Demos/2019121926',
        name: '连接关系',
        part:'Demos',
        text:"连接关系",
        keywords:['拓扑','连接关系','edge'],
        component: (resolve) => require(['./views/Demos/edge.vue'], resolve),
    },
    {
        path: '/Demos/20191211744',
        name: '拖拽元素和图层',
        part:'Demos',
        text:"拖拽元素和图层",
        keywords:['拖拽','元素','图层','drag'],
        component: (resolve) => require(['./views/Demos/20191211500.vue'], resolve),
    },
]
const routers = [
    {
        path: '/index',
        name: 'index',
        component: (resolve) => require(['./views/index.vue'], resolve),
    },

    {
        path: '*',
        redirect: '/index',
    },
    {
        path: '/',
        redirect: '/index',
    },
    ...Demos,
    ...Api
]
export default routers